package com.cxs.plan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cxs.plan.domain.entity.PayType;
import com.cxs.plan.service.PayTypeService;
import com.cxs.plan.mapper.PayTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【pay_type(支付方式)】的数据库操作Service实现
* @createDate 2024-04-02 09:26:33
*/
@Service
public class PayTypeServiceImpl extends ServiceImpl<PayTypeMapper, PayType>
    implements PayTypeService{

    @Autowired
    private PayTypeMapper payTypeMapper;

    @Override
    public List<PayType> selectPayTypeList(Integer type) {
        return payTypeMapper.selectPayTypeList(type, null);
    }

    @Override
    public void savePayType(PayType payType) {

        payTypeMapper.insert(payType);
    }


}




